﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Forging2.Common
{
    public class Equipment: DependencyObject
    {
        public float LENGTH { get; set; } = 100f;
        public float WIDTH { get; set; } = 100f;
        public float HEIGHT { get; set; } = 100f;
        public string CODE { get; set; }
        public string NAME { get; set; }
        public string GID { get; set; }
        public int USAGE_CATEGORY { get; set; }
        public int STATUS { get; set; }
        public string MESCODE { get; set; }


       /*
        //public static DependencyProperty CODEProperty;
        //public static DependencyProperty NAMEProperty;
        public static  DependencyProperty CountProperty;
        public static  DependencyProperty TemperaturesProperty;

        private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ////throw new NotImplementedException();
        }

        public Equipment(string gid, string count,string Temperatures)
        {
            GID = gid;
            CountProperty = DependencyProperty.Register(count, typeof(string), typeof(Heating.HeatingFurnace), new PropertyMetadata("0", OnValueChanged));
            TemperaturesProperty = DependencyProperty.Register(Temperatures, typeof(string), typeof(Heating.HeatingFurnace), new PropertyMetadata("0", OnValueChanged));
        }

        public Equipment()
        {
        }

        public string Count
        {
            get { return GetValue(CountProperty).ToString(); }
            set { SetValue(CountProperty, value); }
        }
        public string Temperatures
        {
            get { return GetValue(TemperaturesProperty).ToString(); }
            set { SetValue(TemperaturesProperty, value); }
        }
       */
    }
}
